package com.ruoyi.odorservice.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("odor_company_industry")
@EqualsAndHashCode(exclude = {"id"})
public class CompanyIndustry implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId
    private Integer id;

    @ApiModelProperty("企业id")
    private Integer companyId;

    @ApiModelProperty("行业id")
    private Integer industryId;

    public CompanyIndustry(Integer companyId, Integer industryId) {
        this.companyId = companyId;
        this.industryId = industryId;
    }
}
